.grayBar {
  height: 20px;
  margin-top: 30px;
  margin-right: -30px;
  margin-left: -30px;
  background-color: rgb(239, 241, 245);
}
.strategyConfig {
  h3 {
    color: #222;
    font-weight: bold;
    font-size: 16px;
  }
  .tag {
    width: 64px;
    height: 32px;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #d1d5e0;
    border-radius: 2px;
    cursor: pointer;
  }
  .readOnlyTag {
    cursor: not-allowed;
  }
  :global(.ant-tag-checkable-checked) {
    border: 1px solid #1a6cfe;
  }
}
.baseInfo {
  :global {
    .ant-tabs-nav {
      padding-inline: 0;
    }
    .ant-tabs-tab {
      padding: 0;
      font-size: 18px;
      border: none;
    }
    .ant-tabs-content-holder {
      padding-inline: 0;
    }
    .ant-tabs-tab-with-remove {
      padding: 0;
    }
    .ant-tabs-card {
      .ant-tabs-nav {
        height: 40px;
        margin-bottom: 10px;
        padding-inline: 0;
      }
      .ant-tabs-tab {
        height: 40px;
        padding: 0;
        font-size: 14px;
        line-height: 40px;
        background-color: #fff;
        border: none;
      }
      .ant-tabs-content-holder {
        padding-inline: 0;
      }
      .ant-tabs-tab-with-remove {
        padding: 0 15px !important;
      }
    }
  }
}
.monthlyInputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}
.dateStrategyActions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 15px;
}
.timelineFormContainer {
  position: relative;
  width: 100%;
  &::before {
    position: absolute;
    top: 13px;
    bottom: 0;
    left: 52px;
    z-index: 1;
    width: 2px;
    background-color: #d1d5e0;
    content: '';
  }
  &::after {
    position: absolute;
    bottom: 0px;
    left: 52px;
    z-index: 1;
    width: 2px;
    height: 37px;
    background-color: #fff;
    content: '';
  }

  .timelineNode {
    position: absolute;
    left: 45px;
    z-index: 2;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 6px solid #1a6cfe;
    border-radius: 50%;

    &::after {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 6px;
      height: 6px;
      background-color: #fff;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      content: '';
    }
  }

  .formItemWrapper {
    position: relative;
    margin-bottom: 24px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .schemeSelect {
    position: absolute;
    top: 40px;
    right: 0;
    width: auto;
  }
}

.hideDatePickerYear {
  :global {
    // 隐藏年份按钮
    .ant-picker-header-view button:first-child {
      display: none;
    }
    // 隐藏年份按钮后的分隔符
    .ant-picker-header-view button:first-child + span {
      display: none;
    }
    // 调整月份按钮的样式
    .ant-picker-header-view button:last-child {
      padding: 0;
    }
  }
}
.gridSwitchContainer {
  max-width: 960px;
  height: calc(100vh - 250px);
  :global {
    .ant-pro-steps-form-steps-container {
      margin: 0;
    }
    .ant-pro-steps-form-step {
      position: relative;
    }
    .ant-pro-steps-form-container {
      position: relative;
      text-align: center;
    }
    .ant-steps-item-icon {
      background-color: #1a6cfe;
    }
    .ant-steps-item-finish .ant-steps-item-icon {
      background-color: #1a6cfe;
      .ant-steps-icon {
        color: #fff;
      }
    }
  }
}
.manualControlWrapper {
  position: absolute;
  top: -32px;
  left: -56%;
  width: 100%;
  text-align: center;
  transform: translateX(-50px);
}
.gridSwitchTips {
  position: relative;
  width: 230px;
  margin: 0 auto;
  text-align: center;
}
.gridSwitchStatus {
  margin-top: 10px;
  margin-bottom: 10px;
  p {
    margin-bottom: 0;
  }
}
.stepStatusWrapper {
  position: relative;
  margin: 16px 0;
  background: #f5f5f5;
  border-radius: 4px;
}

// .loadingContainer {
//   position: absolute;
//   top: 0%;
//   left: 50%;
//   transform: translate(-50%, -50%);
//   z-index: 2;
// }
.gridSwitchStatus {
  margin-top: 16px;

  .stepStatusDisplay {
    background: #f5f5f5;
    border-radius: 4px;
  }
}
.stepStatusDisplay {
  position: relative;
  // min-height: 60px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 4px;

  .statusContent {
    position: relative;
    z-index: 1;

    p {
      margin: 4px 0;
    }
  }
}

.gridSwitchStatus {
  margin-top: 16px;
}
:global {
  .ant-steps-form-container {
    .ant-steps-form {
      min-height: 200px;
    }
  }
}
